-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make heartbeatPeriod const into a flag #356
Conversation
Welcome @mm4tt! |
/assign @wangzhen127 |
/assign @wojtek-t |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a plan to use a different default value on GKE?
9fc651f
to
9b2e42e
Compare
/test pull-npd-e2e-node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly lgtm, just a nit.
/cc @xueweiz
cmd/options/options.go
Outdated
@@ -83,6 +83,9 @@ type NodeProblemDetectorOptions struct { | |||
|
|||
// NodeName is the node name used to communicate with Kubernetes ApiServer. | |||
NodeName string | |||
|
|||
// K8sExporterHeartbeatPeriod is the period at which the k8s exporter does forcibly sync with apiserver. | |||
K8sExporterHeartbeatPeriod time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: put this along with the k8s exporter ones above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done.
9b2e42e
to
2e9da85
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mm4tt, wangzhen127, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an important parameter when it comes to kubernetes scalability (it controlls the node/status patch QPS) and it deserves to be a flag instead of a constant.
/sig scalability